﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using System.Threading.Tasks;

namespace NineMine.DataModel
{
    public class Journal
    {
        [Key]
        public long Id { get; set; }
        
        public long JournalizedId { get; set; }

        [MaxLength(30)]
        public string JournalizedType { get; set; }

        public User User { get; set; }

        [Column(TypeName ="ntext")]
        public string Notes { get; set; }

        public DateTime CreatedOn { get; set; }

        public bool PrivateNotes { get; set; }

        public List<JournalDetail> Details { get; set; }
    }
}
